package com.xw.Beans;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 描述:用于封装邮箱相关配置
 * @author 杨建全
 * @date 2017年4月7日 下午3:02:25
 */
public class MailBox implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Integer mailBoxId;							//邮箱id
	private String mailBoxName;							//邮箱账号
	private String password;							//邮箱密码
	private int isEnable;								//是否开启0未开启，1开启
	private Integer type;								//邮箱类型DD[MAIL_TYPE] 1 接收 2 发送 3 接收发送
	private String smtpUrl;								//SMTP服务器地址
	private String imapUrl;								//IMAP服务器地址
	private String smtpPort;							//SMTP端口
	private Integer smtpType;							//0-NOSSL,1-SSL,2-TSL,3-STARTTLS
	private String imapPort;							//IMAP端口
	private String createUser;							//创建人
	private String lastUpdateUser;						//最后更新人
	private String lastUpdateTime;						//最后更新时间
	private List<MailBoxConfig> configList = new ArrayList<MailBoxConfig>();			//配置项		
	
	public Integer getSmtpType() {
		return smtpType;
	}
	public void setSmtpType(Integer smtpType) {
		this.smtpType = smtpType;
	}
	public Integer getMailBoxId() {
		return mailBoxId;
	}
	public void setMailBoxId(Integer mailBoxId) {
		this.mailBoxId = mailBoxId;
	}
	public String getMailBoxName() {
		return mailBoxName;
	}
	public void setMailBoxName(String mailBoxName) {
		this.mailBoxName = mailBoxName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getIsEnable() {
		return isEnable;
	}
	public void setIsEnable(int isEnable) {
		this.isEnable = isEnable;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getSmtpUrl() {
		return smtpUrl;
	}
	public void setSmtpUrl(String smtpUrl) {
		this.smtpUrl = smtpUrl;
	}
	public String getImapUrl() {
		return imapUrl;
	}
	public void setImapUrl(String imapUrl) {
		this.imapUrl = imapUrl;
	}
	public String getSmtpPort() {
		return smtpPort;
	}
	public void setSmtpPort(String smtpPort) {
		this.smtpPort = smtpPort;
	}
	public String getImapPort() {
		return imapPort;
	}
	public void setImapPort(String imapPort) {
		this.imapPort = imapPort;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getLastUpdateUser() {
		return lastUpdateUser;
	}
	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}
	public String getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	public List<MailBoxConfig> getConfigList() {
		return configList;
	}
	public void setConfigList(List<MailBoxConfig> configList) {
		this.configList = configList;
	}
	@Override
	public String toString() {
		return "MailBox [mailBoxName=" + mailBoxName + ", password=" + password + ", isEnable=" + isEnable + ", type="
				+ type + ", smtpUrl=" + smtpUrl + ", imapUrl=" + imapUrl + ", smtpPort=" + smtpPort + ", imapPort="
				+ imapPort + ", createUser=" + createUser + ", lastUpdateUser="
				+ lastUpdateUser + ", lastUpdateTime=" + lastUpdateTime + ", configList=" + configList + "]";
	}
	
}
